var http = require('http');
http.createServer(function (request, response) {
  response.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'});
  if(request.url !== '/favicon.ico') { //清除第二次访问
    console.log('访问');
    response.write('hello, world');
    response.end('hell,世界'); //不写则没有http协议尾,但是写了会产生两次访问
  }
}).listen(8000);
console.log('Server running at http://localhost:8000/');
